class window.Bottle extends window.Item
    bwidth : -> 6 * 4
    bheight : -> 11 * 4
    boffx : -> 7 * 4
    boffy : -> 5 * 4

    constructor : ->
        super()
        @weight = 0.30
        @spr = [32, 96]
        @soundMultiplier = 3.0

    slideCollide :(s) ->
        return if not super(s)
        @g.deleteEntity @
        e = @g.addEntity new window.GlassFragment()
        e.x = @.x
        e.y = @.y

        e = @g.addEntity new window.GlassFragment()
        e.x = @.x
        e.y = @.y

    collidedWith : (who) ->
        return if not super(who)
        @g.deleteEntity @
        e = @g.addEntity new window.GlassFragment()
        e.x = @.x
        e.y = @.y

        @g.makeBlood e.x, e.y, 2

        e = @g.addEntity new window.GlassFragment()
        e.x = @.x
        e.y = @.y